package org.romov.vocab.console;

import org.romov.vocab.common.*;

/**
 * Console application of vocabulary trainer.
 * Implements simple terminal user interface.
 * @author Peter Romov <romovpa@gmail.com>
 */
public class ConsoleApplication {
	
	/**
	 * Main method
	 * @param args application arguments
	 */
	public static void main(String args[]) {
		// Creating new application object
		ConsoleApplication app = new ConsoleApplication();
		app.handleArgs(args);
		// Running application
		app.start();
	}
	
	public static String HELP_MESSAGE = 
			"Vocabulary trainer\n" +
			"Usage: ConsoleApplication [params] <vocabulary-file>\n" +
			"Parameters:\n" +
			"    -c --color       use colored interface\n" +
			"    -h --help        print help message end exit\n";
	
	/**
	 * Constructor of object
	 */
	public ConsoleApplication() {
		console = new Console(System.in, System.out);
	}
	
	/**
	 * Handles command line arguments
	 * @param args array of arguments
	 */
	public void handleArgs(String args[]) {
		
	}
	
	/**
	 * Starts the application
	 */
	public void start() {
		
	}
	
	private Console console;
	
}
